﻿using System.Windows;
using System.Windows.Controls;
using T68Control.ViewModel;

namespace T68Control.View
{
    /// <summary>
    /// DebugView.xaml 的交互逻辑
    /// </summary>
    public partial class DebugView : UserControl
    {
        public DebugView()
        {
            InitializeComponent();
            this.DataContext = new DebugViewModel();
            connect.IsEnabled = true;
            disConnect.IsEnabled = false;
        }

        private void connect_Click(object sender, RoutedEventArgs e)
        {
            connect.IsEnabled = false;
            disConnect.IsEnabled = true;
        }

        private void disConnect_Click(object sender, RoutedEventArgs e)
        {
            connect.IsEnabled = true;
            disConnect.IsEnabled = false;
        }
    }
}